languages =["c","c++","python","java","go","c#"]
for x in languages:
    if x=="c#":
        continue
    print("循环数据：",x)
else:
    print("没有循环数据")
print("完成循环!")

sum = 0
for n in range(101):
    sum=sum+n
    n += 1
print("1到100的和：",sum)

for n in range(1,6):
    print(n)
print(tuple(range(1,6)))  # 一句代码打印出结果

for i in range(0,10,3):   # 范围，步长
    print(i)

for i in range(-10,-100,-30):
    print(i)

"""结合range()和len()函数以遍历一个序列的索引"""
a = ['Google','Baidu','Runnob','Taobao','QQ']
for i in range(len(a)):
    print(i,a[i])

print(list(range(5)))